import request from '@/utils/request'


  export function getAllOrder(data) {
      return request({
        url: '/order/getAllOrder',
        method: 'post',
        data
      })
    }

  export function getAllOrderById(userId) {
    return request({
      url: '/order/getAllOrderById/'+userId,
      method: 'post'
    })
  }

  export function getNoCommentOrder(userId) {
    return request({
      url: '/order/getNoCommentOrder/'+userId,
      method: 'post'
    })
  }

  export function getNotPayOrder(userId) {
    return request({
      url: '/order/getNotPayOrder/'+userId,
      method: 'post'
    }) 
  }
  export function getPayOrder(userId) {
      return request({
        url: '/order/getPayOrder/'+userId,
        method: 'post'
      })
    }
  export function getNoGoOrder(userId) {
    return request({
      url: '/order/getNoGoOrder/'+userId,
      method: 'post'
    })
  }

  export function deleteOrder(orderId) {
    return request({
      url: '/order/deleteOrder/'+orderId,
      method: 'post'
    })
  }

  export function getAllPersons(orderId) {
    return request({
      url: '/order/getAllPersons/'+orderId,
      method: 'post'
    })
  }

  export function findBookPerson(orderId) {
    return request({
      url: '/order/findBookPerson/'+orderId,
      method: 'post'
    })
  }

  export function updatePayStatus(orderId) {
    return request({
      url: '/order/updatePayStatus/'+orderId,
      method: 'post'
    })
  }

  export function buyGroup(data) {
    return request({
      url: '/order/buyGroup',
      method: 'post',
      data

    })
  }

  export function updateBook(data) {
    return request({
      url: '/order/updateBook',
      method: 'post',
      data

    })
  }

  export function addInFo(data) {
    return request({
      url: '/order/addInFo',
      method: 'post',
      data

    })
  }


